using System.Linq;
using PortalCurriculo.Domain.Interface;
using PortalCurriculo.Domain.Utils;

namespace PortalCurriculo.Domain
{
    public partial class LocalBanner : ILocalBanner
    {
        public LocalBanner SelecionarPorCodigoInterno()
        {
            return (from LocalBanner localBanner in Context.Instance.LocalBanners
                    where localBanner.CodigoInterno == CodigoInterno
                    select localBanner).FirstOrDefault();
        }
    }
}
